<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title></title>
</head>
<body>


<nav class="">
  <ul class="pagination">
    <li>
      <c:choose>
        <c:when test="${pageInfo.firstPage == null}">
          <a href="javascript:void(0);"  aria-label="首页">
            <span aria-hidden="true">首页</span>
          </a>
        </c:when>
        <c:when test="${pageInfo.firstPage != null}">
          <a href="helloWorld.html?page=${pageInfo.firstPage}&rows=${pageInfo.pageSize}&countryname=${tUser.name}&countrycode=${tUser.password}"  aria-label="首页">
            <span aria-hidden="true">首页</span>
          </a>
        </c:when>
      </c:choose>
    </li>
    <c:choose>
      <c:when test="${pageInfo.hasPreviousPage}">
        <li><a href="helloWorld.html?page=${pageInfo.prePage}&rows=${pageInfo.pageSize}&countryname=${tUser.name}&countrycode=${tUser.password}">前一页</a></li>
      </c:when>
      <c:when test="${pageInfo.hasPreviousPage == null || pageInfo.hasPreviousPage == false}">
        <li><a href="javascript:void(0);">前一页</a></li>
      </c:when>
    </c:choose>
    <c:choose>
      <c:when test="${pageInfo.hasNextPage}">
        <li><a href="helloWorld.html?page=${pageInfo.nextPage}&rows=${pageInfo.pageSize}&countryname=${tUser.name}&countrycode=${tUser.password}">下一页</a></li>
      </c:when>
      <c:when  test="${pageInfo.hasNextPage == null || pageInfo.hasNextPage == false}">
        <li><a href="javascript:void(0);">下一页</a></li>
      </c:when>
    </c:choose>
    <li>
      <c:choose>
        <c:when test="${pageInfo.lastPage == null}">
          <a href="javascript:void(0);"  aria-label="末页">
            <span aria-hidden="true">末页</span>
          </a>
        </c:when>
        <c:when test="${pageInfo.lastPage != null}">
          <a href="helloWorld.html?page=${pageInfo.lastPage}&rows=${pageInfo.pageSize}&countryname=${tUser.name}&countrycode=${tUser.password}"  aria-label="末页">
            <span aria-hidden="true">末页</span>
          </a>
        </c:when>
      </c:choose>
    </li>
    <li class="diasbled">
      <a href="javascript:void(0);">
        共
        <strong>
          <c:choose>
            <c:when test="${pageInfo.pages != null}">
              ${pageInfo.pages}
            </c:when>
            <c:when test="${pageInfo.pages == null}">
              0
            </c:when>
          </c:choose>
        </strong>页,
        第
        <strong>
          <c:choose>
            <c:when test="${pageInfo.pageNum != null}">
              ${pageInfo.pageNum}
            </c:when>
            <c:when test="${pageInfo.pageNum == null}">
              0
            </c:when>
          </c:choose>
        </strong>页,
        共
        <strong>
          <c:choose>
            <c:when test="${pageInfo.total != null}">
              ${pageInfo.total}
            </c:when>
            <c:when test="${pageInfo.total == null}">
              0
            </c:when>
          </c:choose>
        </strong>条记录
      </a>
    </li>
  </ul>

</nav>

</body>
</html>
